﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.IO;

namespace WebHoiChoMuaBan.Models
{
    public class CompareFiles : IComparer
    {
        int IComparer.Compare(Object a, Object b)
        {
            FileInfo fia = new FileInfo((string)a);
            FileInfo fib = new FileInfo((string)b);

            DateTime cta = fia.CreationTime;
            DateTime ctb = fib.CreationTime;

            return DateTime.Compare(cta, ctb);
        }
    }
}